package com.okcl.manage.mapper;

import com.okcl.manage.domain.Book;
import com.okcl.manage.domain.BorrowRecord;
import com.okcl.manage.domain.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HomeMapper {
    /**
     * 查询类别信息
     *
     * @return
     */
    List<Category> getCateGoryInfoList();

    /**
     * 获取图书信息
     *
     * @return
     */
    List<Book> getBookInfoList();

    /**
     * 图书批量插入借阅记录
     *
     * @param bookBorrowRecordList
     * @return
     */
    int submitBorrowRecord(@Param("books") List<BorrowRecord> bookBorrowRecordList);
}
